<!DOCTYPE html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
	<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
	<%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
	<%@ include file="/WEB-INF/views-jsp/include/meta/meta.jsp" %>
	<%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
	<%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
	<script type="text/javascript" src="${path}/html/js/js-jsp/du/dustAlarmConfig/dustAlarmConfigOption.js?v=<%out.print(Math.random());%>"></script>
</head>
	<body>
		<div class="place">
			<span>当前位置：</span>
			<ul class="placeul">
				<li><a href="${path}/dustAlarmConfig/index.do" id="aa">警报配置</a></li>
				<c:if test="${dustAlarmConfig.dacId == null}">
					<li><a>添加配置</a></li>
				</c:if>
				<c:if test="${dustAlarmConfig.dacId != null}">
					<li><a>修改配置</a></li>
				</c:if>
			</ul>
		</div>
		<form id="dustAlarmConfig_form" class="form" method="post" action="#">
			<div class="formbody">
				<div class="formtitle">
					<span>警报配置信息</span>
				</div>
				<input type="hidden" name="dacId" id="dacId_" value="${dustAlarmConfig.dacId}" />
				<input type="hidden" name="companyId" id="companyId_" value="${dustAlarmConfig.companyId}" />
				<input type="hidden" name="prId" id="prId_" value="${dustAlarmConfig.prId}" />
				<table id="companyDesc" align="center" border="0" width="100%" style="font-size: 12px;">
					<tr height="50px">
						<td align="right">公司名称：</td>
						<td align="left">
							<input id="companyTree" class="easyui-combotree" style="width:225px; height: 30px" prompt="--请选择--" missingMessage="所属公司不能为空"/>
						</td>
						<td align="right">项目名称：</td>
						<td align="left">
							<input class="easyui-combobox" id="prId" editable="false" prompt="--请选择--" validType="selectNotEmpty" data-options="required:true"
								   missingMessage="所属项目不能为空"  style="width:225px; height: 32px" />
						</td>
					</tr>
					<tr height="50px">
						<td align="right">预警触发所需持续时间(s)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="earlyWarnTrigger" data-options="min:0,max:3600,validType:['integer','length[1,4]']"
								   value="${dustAlarmConfig.earlyWarnTrigger}" prompt="请输入预警触发所需持续时间" style="width:225px; height: 32px"/>
						</td>
						<td align="right">报警触发所需持续时间(s)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="alarmTrigger" data-options="min:0,max:3600,validType:['integer','length[1,4]']"
								   value="${dustAlarmConfig.alarmTrigger}" prompt="请输入报警触发所需持续时间" style="width:225px; height: 32px"/>
						</td>
					</tr>
					<tr height="50px">
						<td align="right">aqi预警阈值(μg/m³)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="aqiEarlyWarn" data-options="min:0,precision:2,max:300,validType:['double','length[1,6]']"
								   value="${dustAlarmConfig.aqiEarlyWarn}" prompt="请输入aqi预警阈值" style="width:225px; height: 32px"/>
						</td>
						<td align="right">aqi报警阈值(μg/m³)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="aqiAlarm" data-options="min:0,precision:2,max:300,validType:['double','length[1,6]']"
								   value="${dustAlarmConfig.aqiAlarm}" prompt="请输入aqi报警阈值" style="width:225px; height: 32px"/>
						</td>
					</tr>
					<tr height="50px">
						<td align="right">pm2.5预警阈值(μg/m³)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="pm25EarlyWarn" data-options="min:0,precision:2,max:250,validType:['double','length[1,6]']"
								   value="${dustAlarmConfig.pm25EarlyWarn}" prompt="请输入pm2.5预警阈值" style="width:225px; height: 32px"/>
						</td>
						<td align="right">pm2.5报警阈值(μg/m³)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="pm25Alarm" data-options="min:0,precision:2,max:250,validType:['double','length[1,6]']"
								   value="${dustAlarmConfig.pm25Alarm}" prompt="请输入pm2.5报警阈值" style="width:225px; height: 32px"/>
						</td>
					</tr>
					<tr height="50px">
						<td align="right">pm10预警阈值(μg/m³)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="pm10EarlyWarn" data-options="min:0,precision:2,max:150,validType:['double','length[1,6]']"
								   value="${dustAlarmConfig.pm10EarlyWarn}" prompt="请输入pm10预警阈值" style="width:225px; height: 32px"/>
						</td>
						<td align="right">pm10报警阈值(μg/m³)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="pm10Alarm" data-options="min:0,precision:2,max:150,validType:['double','length[1,6]']"
								   value="${dustAlarmConfig.pm10Alarm}" prompt="请输入pm10报警阈值" style="width:225px; height: 32px"/>
						</td>
					</tr>
					<tr height="50px">
						<td align="right">风速预警阈值(m/s)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="wsEarlyWarn" data-options="min:0,precision:2,max:14,validType:['double','length[1,5]']"
								   value="${dustAlarmConfig.wsEarlyWarn}" prompt="请输入风速预警阈值" style="width:225px; height: 32px"/>
						</td>
						<td align="right">风速报警阈值(m/s)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="wsAlarm" data-options="min:0,precision:2,max:14,validType:['double','length[1,5]']"
								   value="${dustAlarmConfig.wsAlarm}" prompt="请输入风速报警阈值" style="width:225px; height: 32px"/>
						</td>
					</tr>
					<tr height="50px">
						<td align="right">温度预警阈值(°C)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="tempEarlyWarn" data-options="min:0,precision:2,max:40,validType:['double','length[1,5]']"
								   value="${dustAlarmConfig.tempEarlyWarn}" prompt="请输入温度预警阈值" style="width:225px; height: 32px"/>
						</td>
						<td align="right">温度报警阈值(°C)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="tempAlarm" data-options="min:0,precision:2,max:40,validType:['double','length[1,5]']"
								   value="${dustAlarmConfig.tempAlarm}" prompt="请输入温度报警阈值" style="width:225px; height: 32px"/>
						</td>
					</tr>
					<tr height="50px">
						<td align="right">湿度预警阈值(%rh)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="humEarlyWarn" data-options="min:10,precision:2,max:90,validType:['double','length[1,5]']"
								   value="${dustAlarmConfig.humEarlyWarn}" prompt="请输入湿度预警阈值" style="width:225px; height: 32px"/>
						</td>
						<td align="right">湿度报警阈值(%rh)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="humAlarm" data-options="min:10,precision:2,max:90,validType:['double','length[1,5]']"
								   value="${dustAlarmConfig.humAlarm}" prompt="请输入湿度报警阈值" style="width:225px; height: 32px"/>
						</td>
					</tr>
					<tr height="50px">
						<td align="right">噪声预警阈值(db)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="noiseEarlyWarn" data-options="min:25,precision:2,max:80,validType:['double','length[1,5]']"
								   value="${dustAlarmConfig.noiseEarlyWarn}" prompt="请输入噪声预警阈值" style="width:225px; height: 32px"/>
						</td>
						<td align="right">噪声报警阈值(db)：</td>
						<td align="left">
							<input class="easyui-numberbox" name="noiseAlarm" data-options="min:25,precision:2,max:80,validType:['double','length[1,5]']"
								   value="${dustAlarmConfig.noiseAlarm}" prompt="请输入噪声报警阈值" style="width:225px; height: 32px"/>
						</td>
					</tr>
					<tr  class="formbody" align="center">
						<td colspan="4">
							<div>
								<a id="optionDustAlarmConfig" class="easyui-linkbutton c1" style="width:120px; height: 35px">保存</a>
								&nbsp;&nbsp;&nbsp;
								<a href="${path}/dustAlarmConfig/index.do" class="easyui-linkbutton c1" style="width:120px; height: 35px">取消</a>
							</div>
						</td>

					</tr>
				</table>
			</div>
		</form>

	</body>
</html>